package com.itsu.pojo.results;


import com.itsu.pojo.enums.ResultCode;
import lombok.Data;

/**
 * @项目名称: tanhua-53
 * @包名: com.itheima.appserver.excepiton
 * @作者: 李云飞
 * @日期: 2021-12-03
 */

@Data
public class ErrorResult {
    private String errCode;
    private String errMessage;

    public ErrorResult(ResultCode resultCode) {
        this.errCode = resultCode.getCode();
        this.errMessage = resultCode.getValue();
    }
}
